package com.itheima.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Pref implements Serializable {
    private Integer id;                       //ID
    private Integer cate_id;                  //分类ID
    private Integer buy_money;                //消费金额
    private Integer pre_money;                //优惠金额
    private Date start_time;                  //活动开始日期
    private Date end_time;                    //活动截至日期
    private String type;                      //类型
    private String state;                     //状态

    private List<Category> categories;

    public Pref() {
    }

    public Pref(Integer id, Integer cate_id, Integer buy_money, Integer pre_money, Date start_time, Date end_time, String type, String state, List<Category> categories) {
        this.id = id;
        this.cate_id = cate_id;
        this.buy_money = buy_money;
        this.pre_money = pre_money;
        this.start_time = start_time;
        this.end_time = end_time;
        this.type = type;
        this.state = state;
        this.categories = categories;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCate_id() {
        return cate_id;
    }

    public void setCate_id(Integer cate_id) {
        this.cate_id = cate_id;
    }

    public Integer getBuy_money() {
        return buy_money;
    }

    public void setBuy_money(Integer buy_money) {
        this.buy_money = buy_money;
    }

    public Integer getPre_money() {
        return pre_money;
    }

    public void setPre_money(Integer pre_money) {
        this.pre_money = pre_money;
    }

    public Date getStart_time() {
        return start_time;
    }

    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }

    public Date getEnd_time() {
        return end_time;
    }

    public void setEnd_time(Date end_time) {
        this.end_time = end_time;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public List<Category> getCategories() {
        return categories;
    }

    public void setCategories(List<Category> categories) {
        this.categories = categories;
    }

    @Override
    public String toString() {
        return "Pref{" +
                "id=" + id +
                ", cate_id=" + cate_id +
                ", buy_money=" + buy_money +
                ", pre_money=" + pre_money +
                ", start_time=" + start_time +
                ", end_time=" + end_time +
                ", type='" + type + '\'' +
                ", state='" + state + '\'' +
                ", categories=" + categories +
                '}';
    }
}
